package com.dgz.springboot2302.entity;

import java.io.Serializable;

/**
 * @Author duguozheng
 * @Date 2023/03/17  11:46
 * @Description 注册用户实体类---使用当前类的每一个实例来表示一个注册用户信息
 */
public class User implements Serializable {
    private String username;
    private String password;
    private String nickname;
    private int age;

    public User() {}//养成习惯，空参构造器必须加上

    public User(String username, String password, String nickname, int age) {
        this.username = username;
        this.password = password;
        this.nickname = nickname;
        this.age = age;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
}
